<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>XSS Demo</title>
    </head>
    <body>
        <h1>XSS Demo</h1>
        <div id="output">&lt;</div>
        <script>
            const keyword = new URLSearchParams(location.search).get('keyword');
            console.log('keyword:', keyword);
            setTimeout(() => {
                document.querySelector('#output').innerHTML = keyword;
            }, 1000);
        </script>
    </body>
</html>
